<?php
 
include_once("../c/config.php");
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqliTwo->error);}
 
echo '点开日期不接近的';
echo "<br /><br />";

$q=$mysqli->query('SELECT thecode FROM `ling` GROUP by thecode HAVING COUNT(thecode) > 1');

while ($list=$q->fetch_assoc()){
    $qcard=$mysqli->query("SELECT * FROM `ucard` WHERE `thecode` LIKE '".$list['thecode']."'");
    $getC=$qcard->fetch_assoc();
    
    print_r($getC);
    
    echo "<br /><br />";
    
    echo $list['thecode'];
    
    echo "<br /><br />";
    echo $getC['createtime'];
    
    echo "<br /><br /><br /><br />";
    
    
    $qd=$mysqli->query('SELECT * FROM `ling` where thecode="'.$list['thecode'].'" ');
    while ($qdList=$qd->fetch_assoc()){
        echo $qdList['theday'];
        echo '................';
     
        echo $qdList['createtime'];
        
        echo "<br />";
        var_dump($qdList);
        echo "<br />";
        echo '<a  href="selim2.php?id='.$qdList['id'].'">'.$qdList['id'].':'.$qdList['openid'].'</a>';
        echo "<br /><br /><br />";
        
        
        
    }
    
    
    exit;
}